package com.itheima.mapper;

import com.itheima.pojo.Log;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

/**
 * @Name LogMapper
 * @Author BaiXin
 * @Date 2022-10-21 20:14
 */
@Repository
public interface LogMapper {
    /**
     * 保存日志
     * @param log
     */
    @Insert("insert into t_log (operator_name, type, ip, account_name, department, opertor_time) " +
            "values (#{operatorName},#{type},#{ip},#{accountName},#{department},#{operatorTime})")
    void save(Log log);
}
